<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>render实例1--生成一个ul模板</title>
	<script src="./js/vue.js"></script>
</head>
<body>
	<!-- 模板 -->
	<div id="demo">

	</div>

	<script>
		var vdata = {
			message:"hello,Vue"
		}
		// 渲染
		new Vue({
			el:"#demo",
			data:vdata,
			render (createElement){
				return createElement(
					"ul",
					[
						createElement("li",1),
						createElement("li",2),
						createElement("li",3)
					]
				);
			}
		});
	</script>
</body>
</html>